home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-01-01 | 10.6 KB | 290 lines | [TEXT/ttxt] |
- btoa/atob Translator for StuffIt Deluxe
-
- Version 1.0 of 90.12.31.
-
- Written by Raymond Lau
-
- Copyright (C) 1990, Raymond Lau. All Rights Reserved.
-
-
- This software is being licensed to you free of cost.
-
- Please see Terms of usage and distribution at the end
- of this document for information regarding your right
- to use and distribute this software.
-
-
-
- Introduction:
-
- btoa/atob Translator is an external translator for use
- with StuffIt Deluxe, available from Aladdin Systems, Inc.,
- Deer Part Center, #23A-171, Aptos, CA 95003-4723.
- This translator provided compatibility with the UNIX filters
- "btoa" and "atob."
-
- btoa and atob are UNIX filters which convert 8 bit binary
- data to 7 bit ASCII data for transmission across channels
- which only support 7 bit ASCII data. For example, you can
- only email 7 bit ASCII data with SMTP. btoa/atob performs
- the same function as uuencode/uudecode in the UNIX world but
- more efficiently, encoding 4 bytes into 5 instead of 3 into 4.
- BinHex4 on the Mac performs a similar function.
-
- Why use btoa/atob instead of other similar utilities?
- 1. btoa/atob is the most effective ASCII encoder
- compatible with UNIX SMTP mailers that I know of.
- 2. btoa/atob is compatible with the encoding used
- by the popular "tarmail" script.
- Why use something OTHER than btoa/atob?
- 1. With the MacBinary option built into this translator,
- you can transfer entire Macintosh files, including
- applications, as 7 bit ASCII data. However, the
- protocol provided here is not as of this writing
- an accepted standard whereas BinHex4 is for this
- purpose. Also, BinHex4 provides better error
- detection. However, the error detection in
- btoa/atob is reasonably sound.
-
-
- Installation:
-
- The rest of this documentation assumes that you have properly
- installed StuffIt Deluxe and are familiar with the operation
- of StuffIt Deluxe.
-
- To install this translator, placed it in the Translators
- folder in the System folder of your startup drive. Then
- launch (or quit and relaunch, as appropriate) StuffIt Deluxe.
-
- If you are in Standard menu mode, you must switch to Expert
- menu mode to use this translator.
-
-
- Operation:
-
- After installation, you should have a new choice under the
- Other menu with the name "btoa/atob." This item has
- 2 subitems. The subitems are Binary to ASCII... and ASCII
- to Binary...
-
- To convert a binary file to ASCII, select Binary to ASCII.
- At the bottom of the dialog should be a checkbox labelled
- "Make MacBinary." If you are encoding a "Macintosh" file,
- you should have this checked. Doing so will cause the
- translator to first convert your file to MacBinary format
- before doing btoa translation. If you only wish to encode
- the data fork of a file, without saving information about
- the file such as its type/creator, then uncheck this.
-
- Example: You want to email an application to your friend.
- Check Make MacBinary.
- You have a binary PostScript file and want to
- email it to a distant location for printing
- from a UNIX printer server. Uncheck Make
- MacBinary.
-
- Note: The MacBinary encoding is compatible with the
- mbget/mbput filters.
-
- To convert an encoded ASCII file to a binary file, select
- ASCII to Binary. Normally, you should keep Recognize
- MacBinary checked. The translator will know when a file
- being decoded has been MacBinary encoded and when it hasn't.
- However, if you know the file was not from a Macintosh
- source (or that it wasn't MacBinary encoded), then keep this
- unchecked. The MacBinary header does not have rigorous
- presence indicators built into it so non-MB encoded files may
- be mistaken for MB encoded files.
-
-
-
-
-
-
- Appendix A: Excerpts from man page for the btoa/atob filters.
-
- NAME: btoa, atob, tarmail, untarmail encode/decode binary to
- printable ASCII
-
- SYNOPSIS: btoa < inbinary > outtext
- atob < intext > outbinary
- tarmail who subject files ...
-
- DESCRIPTION: btoa is a filter that reads anything from the
- standard input, and encodes it into printable ASCII
- on the standard output. It also attaches checksum
- information used by the reverse filter "atob" to
- check integrity. atob gives NO output (and exits
- with an error message) if its input is garbage or the
- checksums do not check.
-
-
-
-
-
-
-
- Appendix B: Terms of usage and distribution:
-
- Although copyrighted, this software is being licensed
- to you for your use free of charge. However, ownership
- of and interest in this software shall remain with the
- author. Use and distribution of this software is
- governed by the following terms in an effort to
- reasonably insure that this software will remain
- freely available and that no one other than the author
- will derive a commercial benefit from distributing
- this software.
-
-
- LICENSE AGREEMENT
-
-
- "You," "your," and the "user" refers to any person or
- entity which acquires or uses this software.
-
- "Software" refers to any computer programs identified
- at the start of this documentation file, together with
- all codes, techniques, software tools, formats, designs,
- concepts, methods, ideas, and documentation assoicated
- with the computer program(s). The term also includes
- all copies of any part of the software and documentation.
-
- "Author" refers to the author of this software, Raymond
- Lau.
-
-
- This software is owned by the author and contains
- valuable and proprietary information of the author's.
- If you violate any part of this agreement, your right
- to use this software terminates automatically. In the
- event of termination of this agreement, you must destroy
- all copies of this software and derivatives of this
- software in your possession and cease distributing the
- same.
-
- This software is being licensed to you as provided by
- the terms of this agreement.
-
- You may:
- 1. Use this software on as many computers
- as you want at any given time.
- 2. Make as many backup copies of this software as
- you want.
- 3. Alter the software in any manner you see fit
- FOR YOUR OWN PERSONAL USE. Such altered versions
- should not be distributed. The creation of
- such derivatives shall not diminish the author's
- title to this software.
- 4. Terminate this agreement at any time by destroying
- all copies of this software and derivatives of
- this software and cease distributing the same.
-
- You may not:
- 1. Create any derivative works from this software
- for distribution.
- 2. Reverse engineer, disassemble, decompile, or
- otherwise attempt to discover the source code to
- this software.
- 3. Use this software in any manner as to discover
- proprietary information relating to the Translator
- interface in StuffIt Deluxe.
-
-
- You may distribute this software provided that:
- 1. This software is distributed free of any charges
- except as provided for under 1a. This software may
- not be sub-licensed, sold, lent, rented, or leased
- except as provided for under 1a.
- 1a. You may charge a nominal fee to cover
- duplication, shipping and/or handling costs
- of distributing this software provided that
- the pro-rata fee (ex: the fee of ordering a
- disk/CD/tape/etc divided by the number of
- programs on it) does not exceed US $1. You
- may include this software in any compilation
- even if you sell the compilation for a
- profit provided that the pro-rata fee defined
- above does not exceed US $1 for this software.
-
- You may also charge your usual timesharing,
- network usage and/or membership fee if you
- distribute this software electronically.
-
- While you may claim a compilation copyright
- on any compilations which include this
- software, interest in and ownership of this
- software shall remain with the author.
-
- 2. You include this documentation file with the
- distribution.
- 3. You do not modify either this documentation file
- or the software itself.
- 4. You do not use the name of this software or
- of the author or the fact that you provide this
- software in any promotional material relating
- to your distribution of this software. However, you
- may include such information in a catalog listing of
- your offerings.
- 5. You may not transfer this software in a manner as
- to violate any regulations relating to the transfer
- of software, including the US Export Administration
- Act.
-
- Disclaimer of warranty:
-
- In using this software, you understand and agree that this
- software is provided "as is" without warranty of any kind.
- The entire risk as to the results and performance of using
- this software lies entirely with you, the user. The author
- does not make any warranties, either expressed or implied,
- including but not limited to implied warranties of
- merchantability and fitness for a particular purpose, with
- respect to this software.
-
- In no event shall the author be liable for any consequential,
- incidental, or special damages whatsoever (including without
- limitation damages for loss of critical data, loss of profits,
- interruption of business, and the like) arising out of the
- use or inability to use this software.
-
- Although the author would appreciate any feedback and bug
- reports, the author shall not be responsible for correcting
- any problems which you discover or otherwise help you
- maintain and use this software. Furthermore, the author
- may at any time replace, modify, alter, improve, enhance
- or change this software.
-
-
- Complete agreement:
-
- This agreement constitues the entire agreement and supersedes
- any prior agreements between you and the author concerning
- this software. This agreement cannot be amended, modified,
- or waived except in writing.
-
- General:
-
- If any provision of this agreement shall be found to be
- unenforcible, it shall be deemed severed from the remainder
- of this agreement.
-
- This agreement shall be construed in accordance with the laws
- of the State of New York. Any arbitration or litigation
- relating to this agreement shall take place in the State of
- New York.
-
-
-
- U.S. GOVERNMENT RESTRICTED RIGHTS
-
- This Software is provided with RESTRICTED RIGHTS. Use,
- duplication, or disclosure by the government is subject to
- restrictions set forth in subparagraph (c)(1)(ii) of the
- Rights in Technical Data and Computer Software clause at
- 48 CFR 252.227-7013, or in subparagraphs (a) through (d) of
- the Commercial Computer Software Restricted Rights clause at
- 48 CFR 52.227-19, as applicable. The contractor/manufacturer
- is Raymond Lau, 100-04 70 Ave., Forest Hills, NY 11375-5133.
-